<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%@ include file="/common/meta.jsp"%>
<%@ include file="/common/content.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<meta name="keyword" content="${webSite.title}" />
		<title>${webSite.title}</title>
		<%@ include file="/jsps/modules/useragent.jsp"%>
		<script src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/ga.js"
			type="text/javascript"></script>
		<script
			src="${ctx}/jsps/theme/${webSite.webSkin.filename}/js/function.js"
			type="text/javascript"></script>
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/common.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/style_gys.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/style_gys_c.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/index.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />
		<link
			href="${ctx}/jsps/theme/${webSite.webSkin.filename}/image/layout.css"
			rev="stylesheet" rel="stylesheet" type="text/css" />

		<script type="text/javascript">
$().ready(function() {
	$("#transferForm").validate({
		 rules: { 
		},
		success: function(label) {
			label.html("&nbsp;").addClass("checked");
       }	
	});
});
</script>
	</head>
	<body marginwidth="0" marginheight="0">
		<div id="placeholder">
			<div id="content">
				<div class="fhao_rigt" id="fhao_rigt">
					<h3 class="yd_menu" id="yd_menu">
						<div class="yd_mon sb">
							财务结算
						</div>
					</h3>

					<div class="zjmain" id="zjmain">
						<h3 class="fhao_son" id="subMenu">
							<div class="sb sb ms_out" id="zj1">
								财务结算
							</div>
						</h3>

						<div class="sub_div" id="sub_div">
							<div class="seach mb20">
								<form action="epIndexNewsAction!addTransfer.htm" method="post"
									name="transferForm" id="transferForm">
									<span class="sb pt5" style="width: 150px;">结算方式：</span>
									<div class="sb  pt5" >
												<select id="pay" style="width:93px;" type="text" name="transfer.serialno">
													<option>
														工行
													</option>
													<option>
														建行
													</option>
													<option>
														农行
													</option>
													<option>
														中行
													</option>
													<option>
														招行
													</option>
													<option>
														支付宝
													</option>
													<option>
														财付通
													</option>
													<option>
														现金
													</option>
												</select>
									</div>
									<br />
									<br />
									<span class="sb pt5" style="width: 150px;">结算金额(元)：</span>
									<div class="sb pt5">
										<input type="text" size="10" name="transfer.amount"
											class="{maxlength:6,digits:true}" />
									</div>
									<br />
									<br />

									<span class="sb pt5" style="width: 150px;">收款人/收款账号：</span>
									<div class="sb pt5">
										<!-- <input type="text" size="30" name="transfer.account"
											class="{maxlength:22,digits:true}" /> -->
										<input type="text" size="30" name="transfer.account"
											class="{maxlength:22}" />
									</div>
									<br />
									<br />

									<span class="sb pt5" style="width: 150px;">结算银行流水号/编号：</span>
									<div class="sb pt5">
										<input type="text" size="30" name="transfer.swiftno"
											class="{maxlength:25,required:true}" />
									</div>
									<br />
									<br />

									<p class="pbtn1">
										<input id="confirmBt" name="confirm" type="submit"
											value="确认提交" class="daka mr20" />
										<input type="reset" value="重新填写" class="btn04" />
									</p>
								</form>
							</div>

							<h3 class="title1">
								历史记录
							</h3>
							<table cellspacing="0" cellpadding="0" class="result_tb">
								<tbody>
									<tr>
										<th>
											代理人
										</th>
										<th>
											金额
										</th>
										<th>
											结算方式
										</th>
										<th>
											收款人/收款账号
										</th>
										<th>
											结算银行流水号/编号
										</th>
										<th style="width: 80px;">
											转入时间
										</th>
										<th style="width: 60px;">
											处理状态
										</th>
										<th style="width: 60px;">
											备注
										</th>
									</tr>

									<c:forEach items="${transferList}" var="transfer">
										<tr>
											<td  style="width: 90px;">
												${transfer.user.name}
											</td>
											<td>
												${transfer.amount}
											</td>
											<td>
												${transfer.serialno}
											</td>
											<td>
												${transfer.account}
											</td>
											<td>
												${transfer.swiftno}
											</td>
											<td>
												<fmt:formatDate value="${transfer.editedate}"
													pattern="yyyy-MM-dd" />
											</td>
											<td>
												<c:if test="${transfer.state == 0}">待确认</c:if>
												<c:if test="${transfer.state == 1}">已确认</c:if>
											</td>
											<td style="widtd: 60px;">
												${transfer.comments}
											</td>
										</tr>
									</c:forEach>

								</tbody>
							</table>

							<s:form action="epIndexNewsAction!transfer.htm" method="get" name="form1"
			theme="simple">
			<table class="listTable2">
				<tr>
					<td width="50%">
						&nbsp;&nbsp;共有
						<s:property value="pager.rowCount" />
						条记录，每页行数：
						<s:select name="pageSize" list="pager.pageSizeIndexs"
							theme="simple" value="pager.pageSize"
							onchange="document.all.pageNo.value='1';document.all.form1.submit();" />
						当前第
						<s:select name="pageNo" list="pager.pageNoIndexs" theme="simple"
							value="pager.pageNo" onchange="document.all.form1.submit();" />
						页
					</td>
					<td width="200px">
						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.firstPageNo" />';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/first.gif" width="37" height="15" />
						</a>

						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.prePageNo" />';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/back.gif" width="43" height="15" />
						</a>

						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.nextPageNo"/>';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/next.gif" width="43" height="15" />
						</a>

						<a
							href="javascript:document.all.pageNo.value='<s:property value="pager.lastPageNo" />';document.all.form1.submit();">
							<img src="${ctx}/image/jwc/last.gif" width="37" height="15" />
						</a>
					</td>
				</tr>
			</table>
		</s:form>
						</div>
					</div>
				</div>
				<div class="clear"></div>
			</div>
		</div>
	</body>
</html>